<template>
 <li class="dropdown-option"
  :class="{'is-disabled' : disabled}">
   <slot></slot>
 </li>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
  props: {
    disabled: {
      type: Boolean,
      default: false

    }
  }

})
</script>
<style>
 /* *代表所有元素 */
.dropdown-option.is-disabled *{
  color: #6c757d;
  pointer-events: none;
  cursor: not-allowed;
  background: transparent;
}

</style>
